package com.lu.rpc.proxy.core.clients;

import com.lu.rpc.proxy.core.clients.domain.response.RpcResponse;
import lombok.Getter;

/**
 * rpc异常
 *
 * @author: zhanglu
 * @date: 2023/7/9 18:56
 * @modify: 修改人信息, 修改内容 2023/7/9 18:56
 */
@Getter
public class RpcExeception extends RuntimeException{

    private RpcResponse response;

    public RpcExeception(String errorMsg, RpcResponse response) {
        super(errorMsg);
        this.response = response;
        this.response.setErrorMsg(errorMsg);
    }

}
